package com.rboat.exam.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rboat.exam.mapper.ExamTestPaperUserMapper;
import com.rboat.exam.domain.ExamTestPaperUser;
import com.rboat.exam.service.IExamTestPaperUserService;
import com.rboat.common.core.text.Convert;

/**
 * 试卷考生Service业务层处理
 * 
 * @author rboat
 * @date 2019-09-02
 */
@Service
public class ExamTestPaperUserServiceImpl implements IExamTestPaperUserService 
{
    @Autowired
    private ExamTestPaperUserMapper examTestPaperUserMapper;

    /**
     * 查询试卷考生
     * 
     * @param id 试卷考生ID
     * @return 试卷考生
     */
    @Override
    public ExamTestPaperUser selectExamTestPaperUserById(String id)
    {
        return examTestPaperUserMapper.selectExamTestPaperUserById(id);
    }

    /**
     * 查询试卷考生列表
     * 
     * @param examTestPaperUser 试卷考生
     * @return 试卷考生
     */
    @Override
    public List<ExamTestPaperUser> selectExamTestPaperUserList(ExamTestPaperUser examTestPaperUser)
    {
        return examTestPaperUserMapper.selectExamTestPaperUserList(examTestPaperUser);
    }

    /**
     * 新增试卷考生
     * 
     * @param examTestPaperUser 试卷考生
     * @return 结果
     */
    @Override
    public int insertExamTestPaperUser(ExamTestPaperUser examTestPaperUser)
    {
        return examTestPaperUserMapper.insertExamTestPaperUser(examTestPaperUser);
    }

    /**
     * 修改试卷考生
     * 
     * @param examTestPaperUser 试卷考生
     * @return 结果
     */
    @Override
    public int updateExamTestPaperUser(ExamTestPaperUser examTestPaperUser)
    {
        return examTestPaperUserMapper.updateExamTestPaperUser(examTestPaperUser);
    }

    /**
     * 删除试卷考生对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteExamTestPaperUserByIds(String ids)
    {
        return examTestPaperUserMapper.deleteExamTestPaperUserByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除试卷考生信息
     * 
     * @param id 试卷考生ID
     * @return 结果
     */
    @Override
    public int deleteExamTestPaperUserById(String id)
    {
        return examTestPaperUserMapper.deleteExamTestPaperUserById(id);
    }
}
